package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc BffBizRoleRelDto
 * @使用场景
 */
@Data
public class BffBizRoleRelDto implements Serializable {

    /**
     * 角色人员ID
     */
    @ApiModelProperty("角色人员ID")
    private String roleMemberId;

    /**
     * 账号ID
     */
    @ApiModelProperty("账号ID")
    private String userId;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffBizRoleRelDto that = (BffBizRoleRelDto) o;
        return roleMemberId == that.roleMemberId && userId == that.userId && userFace == that.userFace && idCardName == that.idCardName && nickName == that.nickName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), roleMemberId, userId, userFace, idCardName, nickName);
    }


}
   